package cn.wolfcode.service;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IPermissionService {
    void deleteByPrimaryKey(Long id);

    void insert(Permission record);

    List<Permission> selectAll();

    void updateByPrimaryKey(Permission record);

    Permission selectByPrimaryKey(Long id);

//    分页
  PageInfo<Permission> selectlimit(QueryObject queryObject);

//  权限的方法
    void reload();
//当前用户所拥有的权限
 List selectByRoleId(Long id);

    List<String> selectPermission(Long id);
}
